import request from '@/utils/request'

// 查询所有人薪水
export function getAllSalar() {
  return request({
    url: '/salary/all',
    method: 'get'
  })
}


// 修改薪水信息
export function updeteSalary(data) {
  return request({
    url: '/salary/updateSalary',
    method: 'post',
    data
  })
}

// 生成工资单
export function createSalary(data) {
  return request({
    url: '/salary/create',
    method: 'post',
    data: data
    
  })
}

export function deleteDept(id) {
  return request({
    url: '/dept/delete',
    method: 'get',
    params: {id}
    
  })
}

export function getUserSalar(token) {
  return request({
    url: '/salary/info',
    method: 'get',
    params: {token}
  })
}
